What is how long did moses wander in the desert?

According to the Bible, Moses and the Israelites wandered in the desert for 40 years. This was a punishment for their disobedience to God and their lack of faith. During this time, Moses received the Ten Commandments and other laws from God, and the Israelites learned to rely on His provision for their daily needs such as manna, water and quail. The story of their journey through the desert is told in the book of Exodus, and is considered an important event in Jewish and Christian history and theology.